// components/readmore/readmore.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    list: {
      type: Array,
      value: []
    },
    type:{
      type: String,
      value:''
    }
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    onTap(e){
      console.log(e);
      console.log('111');
    },
    showall(e){
      console.log(this.properties.list)
    },
    getinto(e){
      console.log(e)
      let url;
      let type=e.currentTarget.dataset.type;
      let id = e.currentTarget.dataset.id;
      // wx.navigateTo({
      //   url: '/pages/' + e.currentTarget.dataset.type + "/" + e.currentTarget.dataset.type + '?id=' + e.currentTarget.dataset.id
      //   })
      if(type=="notice"){
        url = '/pages/query/query?id='+id+'&type=notice';
      } else if (type ="rulesDetail"){
        url = '/pages/query/query?id=' + id +'&type=rulesDetail';
      }else if(type="otherDetail"){
        url = '/pages/query/query?id=' + id + '&type=otherDetail';
      }
      wx.navigateTo({
        url: url,
      })
    }
  }
})
